package com.jdrx.ocp.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.util.Assert;

/**
 * @Author: Huangxg
 * @Date: 2018/11/26 14:56
 */
@Configuration
@ConfigurationProperties("jdrx.des")
public class DesConfig {
    String defaultKey;
    String encode = "UTF-8";

    /**导出excel路径*/
    String exportApiFileUrl;

    public DesConfig() {
    }

    public String getDefaultKey() {
        Assert.notNull(this.defaultKey, "des.default-key 不能为空");
        return defaultKey;
    }

    public void setDefaultKey(String defaultKey) {
        this.defaultKey = defaultKey;
    }

    public String getEncode() {
        return encode;
    }

    public void setEncode(String encode) {
        this.encode = encode;
    }

    public String getExportApiFileUrl() {
        return exportApiFileUrl;
    }

    public void setExportApiFileUrl(String exportApiFileUrl) {
        this.exportApiFileUrl = exportApiFileUrl;
    }
}
